//
//  SYDNetTool.h
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/19.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SYDNetTool : NSObject

/**
 * 原生get请求（NSURLSession）JSON解析
 */
+ (void)getRequestByServiceUrl:(NSString *)service
                        andApi:(NSString *)api
                     andParams:(NSDictionary *)params
                   andCallBack:(void (^)(id obj))callback;

/**
 * 原生post请求（NSURLSession）JSON解析
 */

+ (void)postRequestByServiceUrl:(NSString *)service
                         andApi:(NSString *)api
                      andParams:(NSDictionary *)params
                    andCallBack:(void (^)(id obj))callback;

+ (void)request:(NSString*)httpUrl withHttpArg:(NSDictionary*)parameters callBack:(void(^)(id responseObject))callback;
@end
